package com.liangfeng.breezebrowser.browsermvp.view;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.liangfeng.breezebrowser.R;
import com.liangfeng.breezebrowser.bean.WindowBean;

import java.util.List;

/**
 * Created by mozhifeng on 2017/5/27.
 */

public class QuickAdapter extends BaseQuickAdapter<WindowBean, BaseViewHolder> {

    public QuickAdapter(List<WindowBean> list) {
        super(R.layout.item_window,list);
    }

    @Override
    protected void convert(BaseViewHolder helper, WindowBean item) {
        helper.setImageBitmap(R.id.iv_windows,item.getBitmap());
        helper.setText(R.id.tv_title_window,item.getTitle());
    }
}
